home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Headers / misckit / MiscFile+Modification.h < prev    next >
Encoding:
Text File  |  1995-01-26  |  1.4 KB  |  38 lines

  1. /************************************************************************
  2.   CATEGORY:            MiscFile (Modification)
  3.   PROGRAMMER:        Todd Thomas, Copyright 1994, 1995.
  4.   BEGAN:            December 22, 1994
  5.   LAST CHANGED:        January 25, 1995
  6.   CHANGES:            -
  7.   VERSION:            0.2
  8.   DECLARED IN:        <misckit/MiscFile.h>
  9.  
  10.   Adds the ability to change the file characteristic of the MiscFile.
  11.   This includes filename changes, permission changes, etc.  This category 
  12.   uses lower level calls declared in the Unix category.
  13.  
  14.   This object is included in the MiscKit by permission from the author
  15.   and its use is governed by the MiscKit license, found in the file
  16.   "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  17.   for a list of all applicable permissions and restrictions.
  18.          
  19.  *************************************************************************/
  20.  
  21.  
  22. @interface MiscFile (Modification)
  23. // Resets owner/group/other to what you give in perms.
  24. - (int)setPermissions: (int)perms for: (int)who;
  25.  
  26. // Adds permissions given while leaving the rest alone.
  27. - (int)addPermissions: (int)perms for: (int)who;
  28.  
  29. // Removes permissions given while leaving the rest alone.
  30. - (int)removePermissions: (int)perms for: (int)who;
  31.  
  32. // There should also be some change owner and change group methods
  33. // included here... they will be added, hopefully using the 
  34. // MiscUser and MiscUserGroup classes.
  35.  
  36. @end
  37.  
  38.